projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3ac26c
)
(Fx_popup_menu): Give the menu a title when the menu is a single keymap.
author
Richard M. Stallman
<rms@gnu.org>
Wed, 9 Oct 1996 04:56:48 +0000
(
04:56
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Wed, 9 Oct 1996 04:56:48 +0000
(
04:56
+0000)
src/xmenu.c
patch
|
blob
|
history
diff --git
a/src/xmenu.c
b/src/xmenu.c
index 3eb56ff3120aa9563e5e835bd4e8a1bba63668c2..cec9aa0d0040e32b5d9213ef3b6583c349f1e7d8 100644
(file)
--- a/
src/xmenu.c
+++ b/
src/xmenu.c
@@
-880,6
+880,8
@@
cached information about equivalent key sequences.")
/* Search for a string appearing directly as an element of the keymap.
That string is the title of the menu. */
prompt = map_prompt (keymap);
+ if (NILP (title) && !NILP (prompt))
+ title = prompt;
/* Make that be the pane title of the first pane. */
if (!NILP (prompt) && menu_items_n_panes >= 0)